
import VueRouter from "vue-router";

// // 导入组件
import index from "./components/index/index.vue";//首页
import login from "./components/login/login.vue";//登录
import password from "./components/password/change-password.vue";//修改密码
import storeInfo from "./components/index/subcomponents/storeInfo/storeInfo.vue";//门店信息
import storeManage from "./components/index/subcomponents/storeManage/storeManage.vue";//
import defaultCombo from "./components/index/subcomponents/defaultCombo/defaultCombo.vue"
import billing from "./components/index/subcomponents/billing/billing.vue"//计时房价
import commodity from "./components/index/subcomponents/commodity/commodity.vue"//商品管理
import combo_tab from "./components/index/subcomponents/combo_tab/combo_tab.vue"//套餐管理
import holiday from "./components/index/subcomponents/holiday/holiday.vue"//假日调价
import recommendSecond from "./components/index/subcomponents/recommend/recommendSecond.vue"//二次推荐
import RecommendWine from "./components/index/subcomponents/recommend/RecommendWine.vue"//酒水设定
import breakRules from "./components/index/subcomponents/recommend/breakRules.vue"//减免规则
// specialRules
import infoQ from "./components/index/subcomponents/recommend/infoQ.vue"//问题描述
import specialRules from "./components/index/subcomponents/recommend/specialRules.vue"//特殊规则设定
import recommendType from "./components/index/subcomponents/recommend/recommendType.vue"//推荐类型设定
import addMatch from "./components/index/subcomponents/storeActive/addMatch.vue"//k歌比赛 
import prize from "./components/index/subcomponents/storeActive/prize.vue"//幸运抽奖 

import account from "./components/index/subcomponents/account/account.vue"//月度结算
import accountDetaile from "./components/index/subcomponents/account/detail.vue"//订单管理/详情（给财务看的所有门店的详情）-月度结算详情（给店长看）
import ordermanage from "./components/index/subcomponents/ordermanage/ordermanage.vue";//订单管理
import meituanBill from "./components/index/subcomponents/meituan/meituanBill.vue";//美团对账正常单
import meituanlogerror from "./components/index/subcomponents/meituan/meituanConsole_error.vue";//美团对账错误日志
import orderAccount from "./components/index/subcomponents/orderAccount/orderAccount.vue";//财务对账

import orderError from "./components/index/subcomponents/orderError/orderError.vue";//异常订单处理
import vipStatistics from "./components/index/subcomponents/vipStatistics/vipStatistics.vue";//vip预收款
import resule from "./components/index/subcomponents/purchase/result.vue";//采购结算
import resultDetail from "./components/index/subcomponents/purchase/resultDetail.vue"//明细
import orderRefund from "./components/index/subcomponents/orderRefund/orderRefund.vue"//订单退款
import rebate from "./components/index/subcomponents/vip/rebate.vue"//vip消费记录
import customer from "./components/index/subcomponents/vip/customer.vue"//vip客户管理
import consumption from "./components/index/subcomponents/vip/consumption.vue"//vip客户管理-消费记录
import recharge from "./components/index/subcomponents/vip/recharge.vue"//vip客户管理-充值记录
import vipRecharge from "./components/index/subcomponents/vip/vipRecharge.vue"//vip充值记录
import storeConsume from "./components/index/subcomponents/storeCard/storeConsume.vue"//门店卡消费记录
import storeRecharge from "./components/index/subcomponents/storeCard/storeRecharge.vue"//门店卡充值记录
import bulk from "./components/index/subcomponents/customerManage/bulk.vue"//团体客户
import monthSat from "./components/index/subcomponents/storeCard/monthSat.vue"//门店卡月度统计
import percentage from "./components/index/subcomponents/staff/percentage.vue"//员工提成
import scheduling from "./components/index/subcomponents/staff/scheduling.vue"//员工排班
import staff from "./components/index/subcomponents/staff/staff.vue"//员工信息
import stockCorrect from "./components/index/subcomponents/storage/stockCorrect.vue"//库存修正
import storageIn from "./components/index/subcomponents/storage/storageIn.vue"//库存管理
import storageInM from "./components/index/subcomponents/storage/storageInM.vue"//库存管理-库存记录
import purchase from "./components/index/subcomponents/storage/purchase.vue"//供应商管理
import supplier from "./components/index/subcomponents/supplier/supplier.vue"//团体客户
import stockRecord from "./components/index/subcomponents/stockRecord/stockRecord.vue"//库存记录-此门店的所有的商品的记录
import singleCount from "./components/index/subcomponents/singleCount/singleCount.vue"//单品统计
import cassette from "./components/index/subcomponents/cassette/cassette.vue"//卡座设置
import backup from "./components/index/subcomponents/backup/backup.vue"//备用金标签设置
import vipgear from "./components/index/subcomponents/vip/vipgear.vue"//vip充值档位设置
import damage from "./components/index/subcomponents/damage/damage.vue"//团体客户
import storeGear from "./components/index/subcomponents/storeGear/storeGear.vue"//团体客户
import download from "./components/index/subcomponents/download/download.vue"//下载中心
import operation from "./components/index/subcomponents/operation/operation.vue"//操作日志
import message from "./components/index/subcomponents/message/message.vue"//短息查询
import imgManage from "./components/index/subcomponents/imgManage/imgManage.vue"//图片资源管理
import access from "./components/index/subcomponents/access/access.vue"//客存管理
import goodsStore from "./components/index/subcomponents/goodsStore/goodsStore.vue"//商品库
import contractManage from "./components/index/subcomponents/contract/contract.vue"//合同管理
import contractInfo from "./components/index/subcomponents/contract/contractInfo.vue"//合同管理得详情页
// import contractInfo from "./components/index/subcomponents/contract/contractInfo.vue"//合同管理得详情页
// import contractInfo from "./components/index/subcomponents/contract/contractInfo.vue"//合同管理得详情页
// import contractInfo from "./components/index/subcomponents/contract/contractInfo.vue"//合同管理得详情页
// import contractInfo from "./components/index/subcomponents/contract/contractInfo.vue"//合同管理得详情页

// import rebate from "./components/index/subcomponents/vip/rebate.vue"//订单退款


var router = new VueRouter({
    routes:[//这里是routes而不是routers
        
        // {path: '/', redirect: '/index/password'},
        {path: '/', redirect: '/index'},
        {path: '/login', component: login},
        {
            path: '/index',
            component: index,
            children:[
                {path: '/', redirect: '/storeInfo'},
                {path:'/storeInfo',component:storeInfo},
                {path:'/storeManage',component:storeManage},
                {path:'/defaultCombo',component:defaultCombo},
                {path:'/billing',component:billing},
                {path:'/commodity',component:commodity},
                {path:'/combo_tab',component:combo_tab},
                {path:'/holiday',component:holiday},
                {path:'/recommendSecond',component:recommendSecond},
                {path:'/RecommendWine',component:RecommendWine},
                {path:'/breakRules',component:breakRules},
                {path:'/infoQ',component:infoQ},
                {path:'/specialRules',component:specialRules},
                {path:'/recommendType',component:recommendType},
                {path:'/addMatch',component:addMatch},
                {path:'/prize',component:prize},
                {path:'/account',component:account},
                {path:'/accountDetaile',component:accountDetaile,name:'/accountDetaile'},
                {path:'/ordermanage',component:ordermanage},
                {path:'/balance',component:accountDetaile},//供店长查看
                {path:'/meituanBill',component:meituanBill},
                {path:'/meituanBill_error',component:meituanBill},
                {path:'/meituanConsole_error',component:meituanlogerror},
                {path:'/orderAccount',component:orderAccount},
                {path:'/orderError',component:orderError},
                {path:'/vipStatistics',component:vipStatistics},
                {path:'/result',component:resule},
                {path:'/resultDetail',component:resultDetail,name:'/resultDetail'},
                {path:'/orderRefund',component:orderRefund},
                {path:'/rebate',component:rebate},
                {path:'/customer',component:customer},
                {path:'/consumption',component:consumption,name:"/consumption"},
                {path:'/recharge',component:recharge,name:"/recharge"},
                {path:'/vipRecharge',component:vipRecharge},
                {path:'/storeConsume',component:storeConsume},
                {path:'/storeRecharge',component:storeRecharge},
                {path:'/storeCustomer',component:customer},
                {path:'/bulk',component:bulk},
                {path:'/monthSat',component:monthSat},
                {path:'/percentage',component:percentage},
                {path:'/scheduling',component:scheduling},
                {path:'/staff',component:staff},
                {path:'/stockCorrect',component:stockCorrect},
                {path:'/storageIn',component:storageIn},
                {path:'/storageInM',component:storageInM,name:"/storageInM"},
                {path:'/purchase',component:purchase},
                {path:'/supplier',component:supplier},
                {path:'/stockRecord',component:stockRecord},
                {path:'/singleCount',component:singleCount},
                {path:'/cassette',component:cassette},
                {path:'/backup',component:backup},
                {path:'/vipgear',component:vipgear},
                {path:'/damage',component:damage},
                {path:'/storeGear',component:storeGear},
                {path:'/download',component:download},
                {path:'/operation',component:operation},
                {path:'/message',component:message},
                {path:'/imgManage',component:imgManage},
                {path:'/access',component:access},
                {path:'/goodsStore',component:goodsStore},
                {path:'/contractManage',component:contractManage},
                {path:'/contractInfo',component:contractInfo,name:"/contractInfo"},
                // {path:'/contractManage',component:contractManage},
                // {path:'/contractManage',component:contractManage},
                // {path:'/contractManage',component:contractManage},
                // {path:'/contractManage',component:contractManage},
                // {path:'/contractManage',component:contractManage},
                // {path:'/contractManage',component:contractManage},
                // {path:'/contractManage',component:contractManage},
                // {path:'/contractManage',component:contractManage},
                // {path:'/contractManage',component:contractManage},
                // {path:'/contractManage',component:contractManage},
                // {path:'/contractManage',component:contractManage},
                {path:'/password', component: password},
            ],
            linkActiveClass:'router-link-active'

        },
    ]
    // linkActiveClass:"active"//覆盖默认高亮路由的类router-link-active
})

export default router